$(function(){
	 $("#grid").datagrid({
			url:'storedetail_getlist', 
		    columns:[[
	  		    {field:'uuid',title:'编号',width:100},
	  		    {field:'storeName',title:'仓库',width:100},
	  		    {field:'goodsName',title:'商品',width:100},
	  		    {field:'num',title:'数量',width:100},
                ]],
			singleSelect:true,
			pagination:true,

		 });	
		$('#btnSearch').bind('click',function(){
			//把表单数据转换成json对象
			var formData = $('#searchForm').serializeJSON();
			$('#grid').datagrid('load',formData);
		});
});